//
//  CLNetWork+Request.m
//  Charles
//
//  Created by Leo on 2017/5/22.
//  Copyright © 2017年 charles. All rights reserved.
//

#import "CLNetWork+Request.h"
@implementation CLNetWork (Request)

//- (void)loginRequestWithParams:(NSDictionary *)params success:(RequestSuccessBlock)success failure:(RequestFailureBlock)failure {
//    self.requestUrl = @"rest/hbcjcj/getUserInfo";
//    self.dataTask = [self requestDataWithMethod:CLRequestMethodPOST params:params success:^(NSURLSessionDataTask *task, id responseObject) {
//        CLNetWorkResult *result = [self getNetworkResultWithData:responseObject withBusinessLogicBlock:^NSArray *(id dataObject) {
//            //解析处理登陆之后返回的数据
//            //用Mantle处理
//            NSMutableArray *tempList=[NSMutableArray array];
//            NSDictionary *dataDic=dataObject;
//            [tempList addObject:dataDic];
//            return tempList;
//        }];
//        success(task,responseObject,result);
//    } failure:^(NSURLSessionDataTask *task, NSError *error) {
//        NSLog(@"error is %@",error);
//    }];
//}
//
//- (void)getMovieListRequestWithParams:(NSDictionary *)params success:(void (^)(NSURLSessionDataTask *, id, CLNetWorkResult *))success failure:(void (^)(NSURLSessionDataTask *, NSError *))failure{
//    self.requestUrl = @"/v2/movie/coming_soon";
//    self.dataTask = [self requestDataWithMethod:CLRequestMethodPOST params:params success:^(NSURLSessionDataTask *task, id responseObject) {
//        CLNetWorkResult *result = [self getNetworkResultWithData:responseObject withBusinessLogicBlock:^NSArray *(id dataObject) {
//            //解析处理登陆之后返回的数据
//            //用Mantle处理
//            NSMutableArray *tempList=[NSMutableArray array];
//            NSDictionary *dataDic=dataObject;
//            [tempList addObject:dataDic];
//            return tempList;
//        }];
//        success(task,responseObject,result);
//    } failure:^(NSURLSessionDataTask *task, NSError *error) {
//        NSLog(@"error is %@",error);
//    }];
//}


@end



